function createObj(o) {
  var clone = Object.create(o);
  clone.sayName = function () {
    console.log("hi");
  };
  return clone;
}
let c = createObj({
  hello: "world",
});
console.log(c.hello); // world
c.sayName(); // hi
